'use strict';

angular.module('myApp.home', ['ngRoute'])

    .config(['$routeProvider', function ($routeProvider) {
        $routeProvider.when('/home', {
            templateUrl: 'views/home/home.html',
            controller: 'homeController'
        });
    }])

    .controller('homeController', ["$scope", function ($scope) {
        var htmls = '';
        for (var i = 0; i < locals.length; i++) {
            htmls += "<div>" + locals[i].name + "</div>"
        }
        $(".locals").append($(htmls))
    }]);